@extends('layout')
@section('body')
    <link rel="stylesheet" href="{{ asset('/assets/theme/admin/css/admin.css') }}"/>
    <style>
        body {
            padding-top: 65px;
            padding-bottom: 40px;
        }
    </style>
    <script>
        var app = {};
        app.name = 'admin';
    </script>
    <body>
    <!--header start-->
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">管理系统</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li @if($nav == 'index' or $nav == '') class="active" @endif><a href="{{ url('admin')  }}">首页 </a></li>
                    <li @if($nav == 'user') class="active" @endif><a href="{{ url('admin/user')  }}">用户 </a></li>
                    <li @if($nav == 'category') class="active" @endif><a href="{{ url('admin/category')  }}">分类</a></li>
                    <li @if($nav == 'system') class="active" @endif><a href="{{ url('admin/system')  }}">系统</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="{{ url('/') }}" target="_blank"><i class="glyphicon glyphicon-home"></i> 回首页</a></li>
                    <li><a><i class="glyphicon glyphicon-user"></i> {{  Auth::user()->name }}</a></li>
                    <li><a href="{{ url("admin/enter/logout") }}"><i class="glyphicon glyphicon-off"></i> 退出</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <!--header end-->
    <!--main start-->
    <div class="container">
        @section('content')
            {{--主体内容--}}
        @show
    </div>
    <!--main end-->
    </body>
@endsection